__author__ = 'sergey'

# Request timeout in seconds
default_request_timeout = 120
default_niceness_level = 5

from archive import which

class BaseServiceManager(object):

    bin_python = None

    def getPython(self):
        if not self.bin_python:
            raise AttributeError("Define 'bin_python' property!")
        return which(self.bin_python)

    pass

class Py2ServiceManager(BaseServiceManager):

    bin_python = "python2"

    pass

class Py3ServiceManager(BaseServiceManager):

    bin_python = "python3"

    pass

class Py27ServiceManager(BaseServiceManager):

    bin_python = "python2.7"

    pass

class Py32ServiceManager(BaseServiceManager):

    bin_python = "python3.2"

    pass

class Py33ServiceManager(BaseServiceManager):

    bin_python = "python3.3"

    pass

class Py34ServiceManager(BaseServiceManager):

    bin_python = "python3.4"

    pass
